package de.koller.planet2D.frame;

import java.io.Serializable;

public class AnimationBean implements Serializable {
	
	private int time;
	private int maxTime;
	public ObjectFrame objectFrame;
	
	public int getMaxTime() {
		return maxTime;
	}

	public void setMaxTime( int maxTime ) {
		this.maxTime = maxTime;
		if( objectFrame != null ) {
			objectFrame.proot.previewFrame.maxTime = maxTime;
			objectFrame.objectFrameComp.timeSlider.setMaximum( maxTime );
		}
	}

	public int getTime() {
		return time;
	}

	public void setTime( int time ) {
		this.time = time;
		if( objectFrame != null ) objectFrame.proot.previewFrame.time = time;
	}
	
}
